﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace MsForgeReboot.Framework.TownCrierChannels {
    public class BaseUrlConfigurationElement : ConfigurationElement {
        private static ConfigurationProperty _baseurl;
        private static ConfigurationPropertyCollection _collection;
        
        [ConfigurationProperty("value",IsRequired=true)]
        public string Value {
            get { return (string)base[_baseurl]; }
            set { base[_baseurl] = value; }
        }
        
        
        static BaseUrlConfigurationElement() {
            _baseurl = new ConfigurationProperty(
                "value",
                typeof(string),
                null,
                ConfigurationPropertyOptions.IsRequired
                );

            _collection = new ConfigurationPropertyCollection();
            _collection.Add(_baseurl);
        }


        protected override ConfigurationPropertyCollection Properties {
            get {
                return _collection;
            }
        }
}
}
